import request from '@/utils/request';

const saleUserApi = {};

saleUserApi.page = (params) => {
	return request({
		url: '/auth-api/sale-user/page',
		method: 'get',
		params: params,
	})
}
saleUserApi.add = (params) => {
	return request({
		url: '/auth-api/sale-user',
		method: 'post',
		data: params,
	})
}
saleUserApi.update = (params) => {
	return request({
		url: '/auth-api/sale-user',
		method: 'put',
		data: params,
	})
}
saleUserApi.get = (id) => {
	return request({
		url: '/auth-api/sale-user/' + id,
		method: 'get',
	})
}
saleUserApi.delete = (id) => {
	return request({
		url: '/auth-api/sale-user/' + id,
		method: 'delete',
	})
}


export default saleUserApi